<template>
  <div class="box-demo">
    <h2>组件C</h2>
    下午好,{{ name }}
  </div>
</template>

<script>
export default {
    inject:['name']
}
</script>

<style scoped>
.box-demo{
    border: 1px solid #00f;
    background: #00f5;
}
</style>